//
import type { AccountInfoData } from '@/types/account'
import { http } from '@/utils/http'

export default {
  getAccountInfoApi: () => {
    //获取账号信息
    return http<AccountInfoData>({
      method: 'GET',
      url: '/v1/shop/account/getShopUserInfoForHome',
    })
  },
  getCapitalAccountApi: (id: string) => {
    //获取账号信息
    return http<{ acct_avail_bal_: number }>({
      method: 'GET',
      url: '/v1/capital/capitalAccount/getById/' + id,
    })
  },
}
